﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Net
{
    class ObjectState
    {
        internal byte[] buffer;
        internal int packageLength;
        internal int state;
        internal int offset;
        internal int dataReceived;
        internal const int BufferLength = 32768;
        internal const int Begin = 0;
        internal const int WaitNextPackagePart = 1;
        internal const int SpillOver = 2;
        public ObjectState()
        {
            buffer = new byte[BufferLength];
            packageLength = 0;
            offset = 0;
            state = Begin;
            dataReceived = 0;
        }
    }
}
